import request from '@/utils/request'

// 删除客户端
export function delClient(clientId) {
  return request({
    url: `/client/${clientId}`,
    method: 'delete'
  })
}

// 更新客户端
export function updateClient(data) {
  return request({
    url: '/client',
    method: 'put',
    data: data
  })
}

// 新增客户端
export function addClient(data) {
  return request({
    url: '/client',
    method: 'post',
    data: data
  })
}

// 查询客户端详情
export function getDetailList(query) {
  return request({
    url: "/client/list",
    method: 'get',
    params: query
  })
}

// 获取客户端详细信息
export function getClientDetail(clientId) {
  return request({
    url: `/client/${clientId}`,
    method: 'get'
  })
}
